﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Link.ascx.cs" Inherits="Hxsoft.AppV1.Admin.LinkManage.Controls.Link" %>

<table border="0" cellpadding="0" cellspacing="0" width="100%" class="FormTable">
	<tr>
		<td class="FieldBox">标题</td>
		<td class="ValueBox">
			<asp:TextBox ID="CtrlTitle" runat="server" Columns="50"></asp:TextBox>
		</td>
	</tr>
	<tr>
		<td class="FieldBox">图片</td>
		<td class="ValueBox">
			<Hxctr:ResourcePopupSelector ID="ImageUploader" FilterResourceTypeName="<%# Hxsoft.AppV1.UploadRule.UploadType_Image %>" InfoType="<%# Hxsoft.AppV1.Module.Links.INFO_TYPE %>" GlobalId="<%# GlobalID %>" runat="server" />
		</td>
	</tr>
	<tr>
		<td class="FieldBox">链接文字</td>
		<td class="ValueBox">
			<FCK:FCKeditor ID="CtrlLinkWords" runat="server">
			</FCK:FCKeditor>
		</td>
	</tr>
	<tr>
		<td class="FieldBox">链接地址</td>
		<td class="ValueBox">
			<asp:TextBox ID="CtrlLinkUrl" runat="server" Columns="50"></asp:TextBox>
		</td>
	</tr>
	<tr>
		<td class="FieldBox">起始日期</td>
		<td class="ValueBox">
			<Hxctr:JSCalendarTextBox ID="CtrlStartDate" runat="server"></Hxctr:JSCalendarTextBox>
			<span class="FieldExplain">[日期格式]</span>
			<Hxctr:DateTimeValidator ID="DTVCtrlStartDate" runat="server" ControlToValidate="CtrlStartDate" Display="none" ErrorMessage="输入字段 [StartDate] 的数据格式不符。">输入字段 [StartDate] 的数据格式不符。</Hxctr:DateTimeValidator>
			<asp:RequiredFieldValidator ID="RFVCtrlStartDate" runat="server" ControlToValidate="CtrlStartDate" ErrorMessage="字段 [StartDate] 不允许为空。">*</asp:RequiredFieldValidator>
		</td>
	</tr>
	<tr>
		<td class="FieldBox">结束日期</td>
		<td class="ValueBox">
			<Hxctr:JSCalendarTextBox ID="CtrlEndDate" runat="server"></Hxctr:JSCalendarTextBox>
			<span class="FieldExplain">[日期格式]</span>
			<Hxctr:DateTimeValidator ID="DTVCtrlEndDate" runat="server" ControlToValidate="CtrlEndDate" Display="none" ErrorMessage="输入字段 [EndDate] 的数据格式不符。">输入字段 [EndDate] 的数据格式不符。</Hxctr:DateTimeValidator>
		</td>
	</tr>
	<tr class="<%# LinkID.HasValue?"hideMe":"" %>">
		<td class="FieldBox">
			所属频道
		</td>
		<td class="ValueBox">
			<Hxctr:DicCheckBoxList ID="CBLChannelIds" ClassCode="<%# Hxsoft.AppV1.Module.Common.DicClassName_ChannelCategory %>" RepeatDirection="Horizontal"
				RepeatColumns="4" RepeatLayout="Flow" runat="server" SiteId="<%#　SiteId %>" />
		</td>
	</tr>
</table>